//
//  BVPersonalInfoTableViewCell.m
//  BVHomeScene
//
//  Created by xiute on 2019/10/17.
//

#import "BVPersonalInfoTableViewCell.h"
#import "UIImageView+BVWebCache.h"

@interface BVPersonalInfoTableViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *headImagev;
@property (weak, nonatomic) IBOutlet UILabel *nickNameL;
@property (weak, nonatomic) IBOutlet UILabel *areaL;

@end

@implementation BVPersonalInfoTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.headImagev.layer.cornerRadius = 35;
    self.headImagev.clipsToBounds = YES;
    
}

- (void)configWithModel:(BVUserInfoModel *)model {
    [self.headImagev bv_imageWithUrl:model.avatarUrl];
    self.nickNameL.text = model.nickName;
    self.areaL.text = [model.province stringByAppendingString:model.city];
}

- (IBAction)editAct:(UIButton *)sender {
    
}

- (IBAction)faceInputAct:(UIButton *)sender {
    if (self.faceInputAct) {
        self.faceInputAct();
    }
}

+ (CGFloat)cellHeight {
    return 132;
}

@end
